*************
* Prep
*************

* change here!
local folder ""


*************
* Standard
*************

* import excel
import excel "`folder'/Moments_Bootstrap.xlsx", sheet("Standard") cellrange(A1:J501) firstrow clear

* reshape
reshape wide M1 M2 M3 M4 M5 M6 M7 M8, i(rep) j(wageq) 
order rep M1* M2* M3* M4* M5* M6* M7* M8* 

* drop
drop M71 M81
drop rep

* save
export excel using "`folder'/moments_bootstrap_standard.xlsx", replace


*************
* Clustered
*************

* import excel
import excel "`folder'/Moments_Bootstrap.xlsx", sheet("Clustered") cellrange(A1:J501) firstrow clear

* reshape
reshape wide M1 M2 M3 M4 M5 M6 M7 M8, i(rep) j(wageq) 
order rep M1* M2* M3* M4* M5* M6* M7* M8* 

* drop
drop M71 M81
drop rep

* save
export excel using "`folder'/moments_bootstrap_clustered.xlsx", replace
